
class P10929_39643 {

	public static void main(String[] args) {
		
		while (true) {
			String line = readLn();
			
			if ("0".equals(line)) break;
			
			process(line);
			
		}
		
	}
	
	private static void process(String line) {
		
		int remainder = 0;
		
		for (int k = line.length() - 1; k > 0; k -= 2) {
			
			String number = line.charAt(k-1) + "" + line.charAt(k);
			int num = Integer.parseInt(number);
			
			remainder = (remainder + num) % 11;
			
		}
		
		if (line.length() % 2 != 0) {
			int num = line.charAt(0) - '0';
			remainder = (remainder + num) % 11;
		}
		
		if (remainder == 0) System.out.println(line + " is a multiple of 11.");
		else System.out.println(line + " is not a multiple of 11.");
		
	}

	static String readLn() {
		String newLine = System.getProperty("line.separator");
		StringBuffer buffer = new StringBuffer();
		int car = -1;
		try {
			car = System.in.read();
			while ((car > 0) && (car != newLine.charAt(0))) {
				buffer.append((char) car);
				car = System.in.read();
			}
			if (car == newLine.charAt(0))
				System.in.skip(newLine.length() - 1);
		} catch (java.io.IOException e) {
			return (null);
		}
		if ((car < 0) && (buffer.length() == 0))
			return (null);
		return (buffer.toString());
	}
	
}
